package com.dxtan90.judge;


import com.dxtan90.bean.Position;
import com.dxtan90.utils.PositionUtils;

import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.event.KeyEvent;
import java.io.File;
import java.io.IOException;

/**
 * @author: shijunhao
 * @date: 2021/12/1 16:52
 * @description: for test
 */
public class Test {
    public static void main(String[] args) throws IOException, AWTException, IllegalAccessException {
        File bamboo1 = new File("C:\\Users\\dxtan90\\Desktop\\网络和共享中心.png");
        File bamboo2 = new File("C:\\Users\\dxtan90\\Desktop\\主页.png");
        PositionJudge positionJudge = new PositionJudge();

//        Position position = positionJudge.findPosition(ImageIO.read(bamboo2), ImageIO.read(bamboo1), 1);
//        System.out.println(position);
        Robot robot = new Robot();
//        Toolkit kit = Toolkit.getDefaultToolkit();
//        Dimension screenSize = kit.getScreenSize();
//        BufferedImage img = robot.createScreenCapture(new Rectangle(0, 0, screenSize.width, screenSize.height));
//        ImageIO.write(img,"PNG",new File("C:\\Users\\dxtan90\\Desktop\\screen.png"));
//        System.out.println(positionJudge.getActions());

        Position vk_9 = PositionUtils.parseKeyPosition("VK_9");
        System.out.println(vk_9.getValue());
    }
}
